package org.bugjail.servlet;

import java.io.IOException;
import java.io.PrintWriter;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.Servlet;

/**
 * Servlet implementation class for Servlet: NoPermissionServlet
 * 
 */
public class NoPermissionServlet extends BasicUIServlet implements Servlet {
	static final long serialVersionUID = 1L;

	@Override
	protected void beforeAction(HttpServletRequest request,
			HttpServletResponse response) throws ServletException, IOException {
		// TODO Auto-generated method stub

	}

	@Override
	protected String pageTitle() {
		return "No permission";
	}

	@Override
	protected void write(HttpServletRequest request,
			HttpServletResponse response) throws ServletException, IOException {
		PrintWriter pw = response.getWriter();
		pw.print("WARNING: You do not have permission to the selected action.");
	}

}